added image setting to method