fixed ImageToolkit conversion bug