cleaned up color model and created average of rgb