C++ extract images from pdf