image resizer bug - width/height swapped