fix jbuilder photo template error