Bugfix image resizer