Fix ImageColor.getcolor

This fixes `ImageColor.getcolor` function when color is `rgba` and mode is `RGB`. And when mode is `LA` and color is any value including `RGBA`.