Adding auto/rectangle mode selection. Static rectangle as of now