Added rectangle object support.