added image change functionality