fix red/blue order (imago reads BGRA, output expects RGBA)