Made the Params structure a part of the Grid and Camera objects so it doesn't have to be passed from function to function.