when the spinbox is created we set the maximum value to 21 so we only need to set it to 31. When mapprovider is userimage we set it to 31 else it keep the max at 21.