draw() on img.onload; after loading img