Specify resourceType of component in dialog.xml

I am facing a html5smartimage node lack of foundation/components/image resourceType issue.

Using  name=”./image/sling:resourceType” in dialog.xml is the key

<smallImage
jcr:primaryType=”cq:Widget”
cropParameter=”./image/imageCrop”
ddGroups=”media”
fieldLabel=”Small Image”
fileNameParameter=”./image/fileName”
fileReferenceParameter=”./image/fileReference”
height=”100″
mapParameter=”./image/imageMap”
name=”./image/file”
renditionSuffix=”/_jcr_content/renditions/original”
requestSuffix=”.img.png”
rotateParameter=”./image/imageRotate”
width=”100″
xtype=”html5smartimage”>
<items jcr:primaryType=”cq:WidgetCollection”>
            <resType
                    jcr:primaryType=”cq:Widget”
                    ignoreData=”{Boolean}true”
                    name=”./image/sling:resourceType”
                    value=”foundation/components/image”
                    xtype=”hidden”/>
        </items>
</smallImage>

Or can simply use

<theAttr
jcr:primaryType=”cq:Widget”
ignoreData=”{Boolean}true”
name=”./image/sling:resourceType”
value=”foundation/components/image”
xtype=”hidden”/>