Completed support for rotating 2D graphics