Painting rotation rectangle