image is unloaded from canvas after loading and painting