fixes #18294, fix permissions and strip away copyrighted ICC profiles