Implemented photo taking