Images and HTML5 videos auto detection