extracted method _get_new_size from Engine._watermark