waitforimages bug