Avoid error where there are too many closings ‘Q’ for the graphic state when rolling back on a transaction.
Reset color space, otherwise prawn thinks the color space is already set in the pdf, and it doesn’t write it to the content anymore