PARTIAL: first pass at an image resizer