fiddling with image upload and resizing