Added fix for photo take