Preserve the ICC color profile

Some clients of ours complained about thumbnails that have slightly different colors than the original image. The reason for this is that the saved thumbnails do no longer contain the embedded ICC color profile. This commit preserves the ICC profile and adds it again when the thumbnail gets saved.