add func for picture and video