Add debug logging for imageUpload
Add debug logging for imageUpload
Change how images are handled by uploadImage