Improved method for calculating the crop box on images with focal points