updated npm deps and added optional arguments for captured image dimensions

I wanted to do more changes, but I did not in the end.
I needed to increment multiple times as I was in a hurry(hacktahon).
Feel free to merge this as 0.1.4