Fixed border painting, at the same time creating a generic PaintInfo interface that can be implemented for different types of painting.