Grayscale transformation now keeps the alpha value