added sql for  ImageDefinition