made template view load images based on screen size