fix canvas to center and not overflow on screen