Improve image gallery cpp example

Uploaded images are now shown immediately.
Merge pull request #161 from gladhorn/master

Image Gallery Cpp