PDFBOX-2047: A read operation must not alter the pdf; optimize toRGB(); created a test

git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1590229 13f79535-47bb-0310-9956-ffa450edef68