code cleanup and minor fixes
Change FBOs to use window dimensions