Turns off debugging
Also wait for image to load