fixed bug in with colorspace convertion