use parseFile to store photo