modifying image resizer