Added new grid template for image and video elements