check the image size