Callback functionality

Added callback functionality that the user hook on the complete event.
Indenting fix

Indenting fix
Added caption of the image as title

The caption that the user has entered when uploading the picture is now
set as the title of the link
Merge pull request #11 from KennyDs/master

Added callback funtionality + the title of the link is now set to the caption of the image