add color profile extraction to jpeg, tiff and png

I add color profile support for jpeg, tiff and png.
Please review it.

Thanks 
I don't think you need to erase it, if you set it in the very next line.