Correctly handle scaling in UIImageView delegate when dealing with edge insets.