support for multiple passes with only two transposes
improve test: test grayscale and rgba with same cases