add revert image function and isCropped method