Added landscape and rotation support (v1.3)