Bug fix to RGB 2 HSL, now seems to work