making sure the image is correctly lodaded