needed renderTexture(id,x,y)
Switched out the code