Added rectangle rotation