Added Logging to imag upload