added loading texture from memory