Cache image data while loading textures