added tests, a toCanvas method for FloatImage, and adjusted the demo to wait on image load