Fix loading textures --- load image & generate texture within same function to properly image data (if needed)