Parse a string or RGB values into an image array