resolve some bugs in imageedit and paint, bug with crop rotation