Do entire bounds check for regions in the database.
Pass the downsample value to imageregistration package to save image size checks.