Added take picture functionality