Added option flag to the _get_png_preview method to determine if the post method content is data or json format.
Added option flag to the _get_png_preview method to determine if the
post method content is data or json format.

alphagov/notifications-api,alphagov/notifications-api