Photo resizer class