Update imagemagick.js

Also return path value to the callback so that the logical position of the identified file can be accessed in the callback method