Fix tabletcam program

Get GPU from commandline, localize variables, draw the correct texture,
free texture at the end