Merge pull request #12705 from berak:imread_document_grayscale