Added logging to the image uploader. Should capture any errors