added image functionality