Method and Apparatus for composition of image colors by memory constraints