Simple image resizer with choice of algorithm