Fix #1193

https://github.com/mybb/mybb/issues/1193 can't rezise images
Merge pull request #1222 from Destroy666x/fix1193f

Fix #1193