Generalize the addItem method to handle differently video, audio, image and text