AFAIK, GraphicEx registers the image format somehow so that it is supported by Delphi and thus can be loaded to a TImage. Maybe you should check how it's done and use VampireLib instead?