Loading textures from memory