Added picture taking functionality