precheck on while loop for images adjusted