rejigged images slightly so dimensions can be accessed in the template