replace color constants for dict
move painters to separate file