fixed matrix multiplication order for bitmaps