fix jbuilder templates to return images json correctly