use img tag instead of video in media gallery for speed and better resource management