hopefully gallery and take picture work