class imagefield and owned template