Implemented drawRect methods for Painter classes