Image Gallery example C++