Fixed restoring original image and colorize bugs.