Changes after review.

Remove unecessary `when` usage with `writeTextToCanvas`
Remove uneeded arguments to `writeTextToCanvas` (they were just setting the default values anyway).
Stringify with an array instead of an object to save memory and uneeded allocations.