Ensure that colours are always of the form #RRGGBB

This is my suggestion on fixing #143.

The problem of using `Number#toString(16)` is that it does not output leading 0's. This patch compensates for that by adding them if necessary.