Correctly handle scaling in UIImageView delegate.