take picture bug fix