added image capturing