Added switch to hex2rgb function to allow for return of array or string