fix erb template once and for all. note bug in image sizes