Dexterity: add support for plone.namedfile images.

Adds proper detection and handling of plone.namedfile images.
Previously onle files were handled.