Fixed painting rounded rectangles