added image switching