Fixed texture bug

Closes https://github.com/PistonDevelopers/piston/issues/102