重构 ImageEditor.js 中

Signed-off-by: Meathill <meathill@gmail.com>