How to check if asset is video or photo on template ?(html)