Fix #1193

https://github.com/mybb/mybb/issues/1193 can't resize images