Fix bug where image could not be plotted if plot_annotations=False