Change OnPaint method