add basic command line handling for 2d textures
fix up some quoting errors