WIP video textures
remove redundant calls
remove dead code
shorter flatten