Hackishly fix stupid errors with image uploading.