adding texture positions in draw function