Resize images on client-side before sending it to your server.