Waitforimages

The third param is very important! Set it “true” to include background images.

Reference: