rgba_to_grayscale method added