Fix image resize scaling

https://github.com/opencart/opencart/commit/e23615aebe386ebd563622ca24aa40f49f923ee4