Adding worker upload script

uploading images via xhr in worker thread