fix handling of opacity when rendering svg with cairo - closes #1943