Simple jQuery plugin to reduce an image and upload it