Paint method was redesigned.