Added Logging to image upload