Canvas: Prevent execute img.onload after a cleaning.