Re-added bresenham line implementation from FlyingJester/tfblit