Annotate reads an image and adds a text annotation to it either at the top
(location == "top") or the bottom (otherwise). The annotation is placed on
an appropriately colored background and rendered in a text color that
ensures good contrast and readability.