Made the texture paths get defined earlier to avoid errors
More detailed debug