Fixed a bug where ratio is lost upon image recrop.