Fixes for colorbar in new regime. Get rid of layer concept. Add new DirectPainter class.