Make bounding box constructed by painter aware of pen width and close #22.