Passing arguments after image being uploaded

With this change, we are able to receive arguments from the response of PHP-side.

Leaving these arguments open, developers can handle the response the way they need (p.e.: open a modal when an error occurs).