Client-side crop&resize jQuery UI custom widget