Add legend to images