Make sure IE9 get integers for rgb

Fixes #2908