Use same calculation for cropping transform cropbox dimensions