Added colorspace support and gamma