Improved image handling in eZXMLHandlerPHP, workaround for buggy ezImageType::fromString