img.onload is no longer the responsibility of canvasResize