Rewrote image loading to specify the loading texture instead of global
loading flag