Wrap the image loading functionality of the inference engine, mirroring what happens in the `classification_sample`.