Preserving alpha channel after grayscale