rescale points to 512x512