add eof command to read photo