fix strict mode for ImageEditor.js