Code cleanup and add support to uncompressed image in each Map and MapReduce.