Takes an image from <file upload> and resizes image giving back a base64 version.