Adding some limited intelligence for reversing RGB conversions.