Added funcationallity to take pictures.