case (im.option.Width == 0 && im.option.Height != 0),
        (im.option.Width != 0 && im.option.Height != 0 && float64(cropedY)/float64(cropedX) > float64(im.option.Height)/float64(im.option.Width)):
        im.calcResizeFitOptionHeight(cropedX, cropedY)