Crop image based on location of 4 orientation squares