Fixing the red images bug.