Allow a custom uploadCompleted function similar to formatData

Similar to Issue #11, this PR allows you to supply your own uploadCompleted function. Because using ```jqxhr.responseText``` as the img src won't work in all cases.

I wasn't able to figure out how to fix the one failing unit test. I'm hoping someone else (@miloshadzic, @orthes) might be able to help me finish this PR?