Batch image resizer written in Java