frame_photo : Beginning of refactorisation : photos are written to device. Reading needs to be implemented.