use patched .d.ts to correct ImageData interface