fixed creation of templated image attributes