[BUGFIX] Calculate correct cropping for large images