Make image uploads work