Got photo taking working properly