Bugfix for gradients with mixed color spaces: the original color was not replaced in the list which cause faulty PDFs. Switched to using a more accurate conversion method to sRGB.