Give access to custome image dimensions

Allow access in templats to the custom dimensions for images.