image resize ios 7 bug fix