now checks size of image before cropping to square