fix: add missing code to make GraphicsMagick work properly for most file formats