fixed colorspace and gamma issues