resize image client side

new feature
resize image from client size (optional)