Fix code sample in preprocess
This PR fixes the code sample to use the new `ImageProcessor` in the code sample for preprocessing an image.
_The documentation is not available anymore as the PR was closed or merged._