Fix color selection: remove possibility of any lossy color conversion without switching color tabs
Add border to rectangular color selector. +Some drawing code fixes.