helperfunction for Photo/Video in dataFunctions

still need to implement in main