Added color transfer and optimized image decomposition