Fixed rendering bugs and add ability to change resolution based on command line args.