fixed waitforimages bug