add imageplayer and videoplayer code