fixed fallback to rgb if called with array (closes #24)