API: used call_user_func_array in order to have an arbitrary number of parameter for getFormattedImage (fixes #1752)
Merge pull request #1753 from g4b0/1752-image-manipulation-parameter

API: used reflection in order to have an arbitrary number of parameter