Fixes bitmap pattern color transform

Fixes #853