tried to fix photo taking