Only add a banner for HTML responses

My app crashed on when trying add a banner to a GIF. This commit makes sure that we only attach the banner to HTML output.