Tweaked image upload process.