Add support for rotary switch, add delay to reduce cpu usage, set image resolution