refactoring to use external images/videos