preserve icc profiles

Hello,
I think would be really useful to preserve icc profiles on thumbnails, I propose this really simple patch to do that, what do you think?

best regards
d.

ps:
reopening the bug request as the previous had a really stupid mistake