HTML file input widget with client side cropping