Add rotated and offset support in SpriteFrame.