Add support for NamedImageFile