photo taking fixed, no errors now