working image resizer with 4:3 aspect ratio