Fix incorrect method name.

The method for uploading images as a multipart form was outdated.
Merge pull request #1727 from zkhalapyan/master

Fix incorrect method name.