add color profile support for PNG, JPEG and TIFF

Please let me know if there is anything need to change.