Make image upload and resizing finally work