Inline method in the name of speed

In particular, there was a write-rgb method that had two call sites. Fortunately it is small.