Create extract_images.cpp