Previously, this was slightly off and not doing what the spec comment above asked for. This led to really small values for x_step and y_step, making the `backgrounds.html' example use crazy amounts of CPU whist painting.
>
]]>