ImageFactory now respects colour profiles. Former-commit-id: e71b779793c79a00719cba7a0e3a0edc21502f36