Image retrieval example

This PR is meant to not distract #161. It does not compile yet and is blocked by #161.