getRectangle can handle lua LRectangle