switched the center point coordinates to float instead of int, to allow smooth panning