Added logs to track image processing time.
Fixed some sections.