update to use ImageTool.mirror from image.js