final fix for sf.net bug 427, handling custom layer colors