adds xhr image uploading via mercury.