Generating visual images: units and relations