Added the code for the rotary switch and images