camera is now centered according to the screen resolution; code improvements