use sRGB when changing color palette; also remove unused colorspace chang