image resizer fixes