started implementing take picture functionality