Reduce coupling between _tkagg and _backend_agg modules

This will make it easier to move to floating-point image buffers in the near future.